package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_FbaBoxDetail", catalog="Id")
public class TccFbaBoxDetail extends BaseEntity<TccFbaBoxDetail> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="BoxId", nameJava="boxId", typeDataBase="bigint")
	private Long boxId;
	@YsField(nameDataBase="BoxNo", nameJava="boxNo", typeDataBase="varchar")
	private String boxNo;
	@YsField(nameDataBase="BoxUpItemId", nameJava="boxUpItemId", typeDataBase="bigint")
	private Long boxUpItemId;
	@YsField(nameDataBase="BidBoxUp", nameJava="bidBoxUp", typeDataBase="varchar")
	private String bidBoxUp;
	@YsField(nameDataBase="BidFbaPlan", nameJava="bidFbaPlan", typeDataBase="varchar")
	private String bidFbaPlan;
	@YsField(nameDataBase="Num", nameJava="num", typeDataBase="int")
	private Integer num;
	@YsField(nameDataBase="PurchaseAmount", nameJava="purchaseAmount", typeDataBase="decimal")
	private BigDecimal purchaseAmount;
	@YsField(nameDataBase="FbaBoxUpInfoId", nameJava="fbaBoxUpInfoId", typeDataBase="bigint")
	private Long fbaBoxUpInfoId;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccFbaBoxDetail setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getBoxId() {
		return boxId;
	}
	public TccFbaBoxDetail setBoxId(Long boxId) {
		this.boxId = boxId;
		return this;
	}
	public String getBoxNo() {
		return boxNo;
	}
	public TccFbaBoxDetail setBoxNo(String boxNo) {
		this.boxNo = boxNo;
		return this;
	}
	public Long getBoxUpItemId() {
		return boxUpItemId;
	}
	public TccFbaBoxDetail setBoxUpItemId(Long boxUpItemId) {
		this.boxUpItemId = boxUpItemId;
		return this;
	}
	public String getBidBoxUp() {
		return bidBoxUp;
	}
	public TccFbaBoxDetail setBidBoxUp(String bidBoxUp) {
		this.bidBoxUp = bidBoxUp;
		return this;
	}
	public String getBidFbaPlan() {
		return bidFbaPlan;
	}
	public TccFbaBoxDetail setBidFbaPlan(String bidFbaPlan) {
		this.bidFbaPlan = bidFbaPlan;
		return this;
	}
	public Integer getNum() {
		return num;
	}
	public TccFbaBoxDetail setNum(Integer num) {
		this.num = num;
		return this;
	}
	public BigDecimal getPurchaseAmount() {
		return purchaseAmount;
	}
	public TccFbaBoxDetail setPurchaseAmount(BigDecimal purchaseAmount) {
		this.purchaseAmount = purchaseAmount;
		return this;
	}
	public Long getFbaBoxUpInfoId() {
		return fbaBoxUpInfoId;
	}
	public TccFbaBoxDetail setFbaBoxUpInfoId(Long fbaBoxUpInfoId) {
		this.fbaBoxUpInfoId = fbaBoxUpInfoId;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccFbaBoxDetail setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccFbaBoxDetail setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccFbaBoxDetail setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccFbaBoxDetail tccFbaBoxDetail(
		Long boxId,
		String boxNo,
		Long boxUpItemId,
		String bidBoxUp,
		String bidFbaPlan,
		Integer num,
		BigDecimal purchaseAmount,
		Long fbaBoxUpInfoId,
		Integer status
			) {
		TccFbaBoxDetail entity = new TccFbaBoxDetail();
		entity.setBoxId(boxId);
		entity.setBoxNo(boxNo);
		entity.setBoxUpItemId(boxUpItemId);
		entity.setBidBoxUp(bidBoxUp);
		entity.setBidFbaPlan(bidFbaPlan);
		entity.setNum(num);
		entity.setPurchaseAmount(purchaseAmount);
		entity.setFbaBoxUpInfoId(fbaBoxUpInfoId);
		entity.setStatus(status);
		return entity;
	}
}